﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site2.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.TestResultListViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> · Seminars management
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="BreadcrumbContent" runat="server">
	<%= Html.ActionLink("Seminar details", "Details", "Seminar", new { id = ViewContext.RouteData.Values["seminarid"] }, null)%> &gt; Test results
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Seminar Test Results</h1>
    <h2>You have added <% =Model.TestResultCount %> participants' test results out of <% =Model.ParticipantsCount %> participants.</h2>
           <% if (Model.TestResults.Count == 0) { %>
            <p></p>
        <% }
           else
           { %>
    <ul id="test_result" class="elements-list">
        <li class="first">
            <div class="cell100 flota">ID</div>
            <div class="cell100 flota">Correct</div>
            <div class="cell110 flota">Incorrect</div>
            <div class="cell150 flota">Not answered</div>
            <div class="cell110 flota_der"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
        </li>
    <% int i = 1; foreach (var item in Model.TestResults) { %>
    
        <li>
            <div class="cell100 flota">
                <%= i++%>
            </div>
            <div class="cell100 flota">
                <%= Html.Encode(item.TestResultCorrectAnswers)%>
            </div>
            <div class="cell110 flota">
                <%= Html.Encode(item.TestResultIncorrectAnswers)%>
            </div> 
            <div class="cell150 flota">
                <%= Html.Encode(item.TestResultNotAnswered)%>
            </div>
            <div class="enlaces flota_der">
            <%= Html.ActionLink("Details", "Details", new { id = item.TestResultID })%>
            <%= Html.ActionLink("Edit", "Edit", new { id = item.TestResultID })%>
            </div> 
        </li>    
    <% } %>

    </ul>
    <% } %>
    <p class="enlaces">
        <%= Html.ActionLink("Add new test results", "Create", new { seminarID = ViewContext.RouteData.Values["seminarid"] })%>
    </p>
    
    <div class="navigation">
        <p class="enlaces">
            <%= Html.ActionLink("Back to seminar page", "Details", "Seminar", new { id = ViewContext.RouteData.Values["seminarid"] }, null)%>
        </p>
    </div>
    

</asp:Content>

